home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO027A.dsk
/
AW.CUSTOM.TXT
< prev
next >
Wrap
Text File
|
2012-02-16
|
12KB
|
209 lines
new
100 REM Copyright(c), February 1987, Garth Shultz, K.A.C.U.S., Kalamazoo, MI
110 REM AppleWorks Extra Custom Printers
120 REM may distribute freely, but don't sell
130 IF PEEK ( - 1101) = 234 THEN HOME : PRINT "WILL NOT RUN ON AN APPLE II+": END : REM check MACHID
140 IF PEEK ( - 1101) = 6 AND PEEK ( - 1088) = 234 THEN GOSUB 30000: REM make sure enhanced //e
200 D$ = CHR$ (4):B$ = CHR$ (7): REM ctrl-d and bell
300 GOSUB 10000: REM title
400 ONERR GOTO 20000: REM error trap
500 HOME : VTAB 12: HTAB 17: PRINT "Would you like to read the directions? (Y/N) ";
510 GET A$: PRINT
520 IF A$ = "Y" OR A$ = "y" THEN GOSUB 4000
600 HOME : PRINT : FOR I = 1 TO 23: VTAB I: HTAB 41: INVERSE : PRINT " ": NORMAL : NEXT
610 VTAB 1: HTAB 43: PRINT "A) Apple DMP/ImageWriter $03BE - +::::"
620 VTAB 2: HTAB 43: PRINT " :::::"
630 VTAB 3: HTAB 43: PRINT "B) Apple Scribe $04BA - ::+::"
640 VTAB 4: HTAB 43: PRINT " :::::"
650 VTAB 5: HTAB 43: PRINT "C) Ap. Daisy/Qume Sp.11 $0569 - +::::"
660 VTAB 6: HTAB 43: PRINT " :::::"
670 VTAB 7: HTAB 43: PRINT " :::::"
680 VTAB 8: HTAB 43: PRINT "D) Silentype $06A5 - +::::"
690 VTAB 9: HTAB 43: PRINT "E) Qume Sprint 5 $072D - ::+::"
700 VTAB 10: HTAB 43: PRINT " :::::"
710 VTAB 11: HTAB 43: PRINT " :::::"
720 VTAB 12: HTAB 43: PRINT "F) Epson FX series $0845 - :+:::"
730 VTAB 13: HTAB 43: PRINT " :::::"
740 VTAB 14: HTAB 43: PRINT "G) Epson MX series $0922 - ::+::"
750 VTAB 15: HTAB 43: PRINT " :::::"
760 VTAB 16: HTAB 43: PRINT "H) Epson MX/Graftrax+ $09C2 - +::::"
770 VTAB 17: HTAB 43: PRINT " ::::+"
780 VTAB 18: HTAB 43: PRINT "I) Epson RX series $0A7A - :::::"
790 VTAB 19: HTAB 43: PRINT " ::::+"
800 VTAB 20: HTAB 43: PRINT "-- Custom Printer $0B42 - :::::"
810 VTAB 21: HTAB 43: PRINT " :::::"
820 VTAB 22: HTAB 43: PRINT " (end of definitions) $0C8E - :::::"
830 VTAB 24: HTAB 53: PRINT "- Memory Map -";
840 POKE 33,40
850 HOME
860 VTAB 22: FOR I = 1 TO 40: INVERSE : PRINT " ";: NEXT : NORMAL
870 VTAB 24: HTAB 14: PRINT "INSTRUCTIONS";
880 POKE 35,21
885 HOME
890 PRINT "The memory map in the window on the "
900 PRINT "right shows the approximate space for"
910 PRINT "each of the pre defined AppleWorks"
920 PRINT "printers. As you can see, the space"
930 PRINT "alloted to the Custom Printer is"
940 PRINT "bigger than the other definitions."
950 PRINT "When the custom printer information"
960 PRINT "is copied into one of these other
970 PRINT "areas, the data also overwrites"
980 PRINT "some of the space for the definitions"
990 PRINT "below it. For this reason it is very"
1000 PRINT "important to choose which area you are"
1010 PRINT "going to use.": PRINT
1020 PRINT "If you need to define three custom"
1030 PRINT "printers, be especially careful that"
1040 PRINT "you don't overwrite your first printer"
1050 PRINT "or the space for 'Custom Printer'."
1055 PRINT : PRINT " Press <any key>...";
1060 GET A$: PRINT : HOME
1070 PRINT "Don't be afraid to experiment. If "
1080 PRINT "you make a mistake, you can always"
1090 PRINT "start over, since you will always use"
1100 PRINT "only a copy of AppleWorks while using"
1110 PRINT "this utility.": PRINT
1120 PRINT "If possible, try to select the printer"
1130 PRINT "which has a configuration already"
1140 PRINT "similar to yours.": PRINT
1150 PRINT "After moving your custom printer data,"
1160 PRINT "remember the name of your new custom"
1170 PRINT "printer. Select this from the list in"
1180 PRINT "AppleWorks' Add a Printer list, and"
1190 PRINT "rename it whatever you wish.": PRINT
1200 PRINT "Press <any key> to continue..."
1210 PRINT " <ESC> to exit";
1220 GET A$: PRINT : IF A$ = CHR$ (27) THEN POKE 33,80: POKE 35,24: HOME : END
1230 HOME
2000 VTAB 6: PRINT "Be sure your AppleWorks disk, with"
2010 PRINT "SEG.PR, to be reconfigured, is in one"
2020 PRINT "of the disk drives.": PRINT
2030 PRINT "The Custom Printer should have been"
2040 PRINT "defined. This is the data that will"
2050 PRINT "be moved to another area of SEG.PR.": PRINT : PRINT
2060 PRINT "Press the key that corresponds to the"
2070 PRINT "letter for the printer to which to"
2080 PRINT "move the definitions:"
2090 PRINT : PRINT " <ESC> to exit..."
2100 VTAB 17: HTAB 22: GET A$: PRINT : IF A$ = CHR$ (27) THEN POKE 33,80: POKE 35,24: HOME : END
2110 PRINT D$"verify/appleworks/seg.pr"
2120 GOTO 2200
2130 HOME : PRINT "/APPLEWORKS disk or /APPLEWORKS with"
2140 PRINT "SEG.PR is not in one of your drives..."
2150 GOTO 2000
2200 IF A$ = "A" OR A$ = "a" THEN N$ = "DMP/Imagewriter":AD$ = "43be": GOTO 2300
2210 IF A$ = "B" OR A$ = "b" THEN N$ = "Apple Scribe":AD$ = "44ba": GOTO 2300
2220 IF A$ = "C" OR A$ = "c" THEN N$ = "Apple Daisywheel/Sprint 11":AD$ = "4569": GOTO 2300
2230 IF A$ = "D" OR A$ = "d" THEN N$ = "Silentype":AD$ = "46a5": GOTO 2300
2240 IF A$ = "E" OR A$ = "e" THEN N$ = "Qume Sprint 5":AD$ = "472d": GOTO 2300
2250 IF A$ = "F" OR A$ = "f" THEN N$ = "Epson FX series":AD$ = "4845": GOTO 2300
2260 IF A$ = "G" OR A$ = "g" THEN N$ = "Epson MX series":AD$ = "4922": GOTO 2300
2270 IF A$ = "H" OR A$ = "h" THEN N$ = "Epson MX/Graftrax+":AD$ = "49c2": GOTO 2300
2280 IF A$ = "I" OR A$ = "i" THEN N$ = "Epson RX series":AD$ = "4a7a": GOTO 2300
2290 GOTO 2100
2300 HOME : VTAB 6: PRINT "You chose ";N$"."
2310 PRINT : PRINT "Is this correct? (Y/N) ";: GET A$: PRINT
2320 IF A$ = "N" OR A$ = "n" THEN HOME : GOTO 2000
2330 VTAB 14: PRINT "Modifying SEG.PR..."
3000 PRINT D$"bload/appleworks/seg.pr,tsys,a$4000"
3010 PRINT D$"bsave/ram/temp,a$4b42,e$4c8e"
3020 PRINT D$"bload/ram/temp,a$";AD$
3030 PRINT D$"bsave/appleworks/seg.pr,tsys,a$4000,e$4e56"
3040 GOTO 3100
3050 VTAB 16: PRINT "Disk is write protected..."
3060 PRINT "Please remove write-protect tab and"
3070 PRINT "press <any key> to continue...";
3080 GET A$: PRINT
3090 GOTO 3030
3100 HOME : VTAB 6: PRINT "Mission accomplished!": PRINT
3110 PRINT "Your AppleWorks disk has been"
3120 PRINT "modified... The printer named"
3130 PRINT N$" now is"
3140 PRINT "customized and contains the data for"
3150 PRINT "your custom printer!": PRINT
3160 PRINT "Since AppleWorks allows up to"
3170 PRINT "three printers, you may wish to"
3180 PRINT "add another custom printer...": PRINT
3190 PRINT "Do you wish to repeat this process?"
3200 PRINT : HTAB 5: PRINT "(Y/N) ";
3210 GET A$: PRINT : IF A$ < > "y" AND A$ < > "Y" THEN POKE 33,80: POKE 35,24: HOME : END
3220 N$ = "":ADR = 0
3230 HOME : GOTO 2000
4000 HOME : VTAB 2: HTAB 24: PRINT "AppleWorks Extra Custom Printers"
4010 VTAB 4: HTAB 6: PRINT "A Utility to Modify AppleWorks to Allow Up to Three Custom Printers"
4020 HTAB 33: PRINT "by Garth Shultz": PRINT
4030 HTAB 5: PRINT "AppleWorks allows up to three printers to be defined, but only allows one"
4040 PRINT "custom printer. If, like I, you have need for two or more custom printers, the"
4050 PRINT "utility will allow SEG.PR, the segment that contains printer information, to be"
4060 PRINT "modified. The work that made this possible was done by David W. Walker. He"
4070 PRINT "analyzed SEG.PR, identified the tables which contain the specific printer"
4080 PRINT "data, and published this information on CompuServe. This file, downloaded from"
4090 PRINT "MAUG, is entitled APWK12.INF. With this information, the rest is fairly easy."
4100 HTAB 5: PRINT "There are nine segments of data which contain the printer codes and"
4110 PRINT "information for the eleven printers listed on the 'Add a Printer' menu in"
4120 PRINT "AppleWorks. The data for a custom printer is contained in the same segment."
4130 PRINT "The code from the Custom Printer is copied to any one of the other nine"
4140 PRINT "segments. By doing this, AppleWorks is simply fooled into thinking that your"
4150 PRINT "Custom Printer is one of the other printers."
4160 VTAB 23: HTAB 16: PRINT "<ESC> to quit, <any other key> to continue...";
4170 GET A$: PRINT : IF A$ = CHR$ (27) THEN HOME : RETURN
4180 HOME
4190 VTAB 6: HTAB 5: PRINT "The program is easy to use. Follow the prompts, and refer to the memory"
4200 PRINT "map to choose the printer to replace. Be sure to use only a copy of your"
4210 PRINT "AppleWorks program. Your Custom Printer should be defined before using this"
4220 PRINT "utility. The write protect tabs should be removed from the disk, as this"
4230 PRINT "program needs to write to your AppleWorks disk. Your AppleWorks disk must be"
4240 PRINT "on a volume named /APPLEWORKS, as it is on the original disk."
4250 HTAB 5: PRINT "This utility requires a 128 K Apple II. When selecting the printers to"
4260 PRINT "replace, try to choose a printer which is similar to yours, if possible. It"
4270 PRINT "might be wise to protect the printer named SILENTYPE for use as a printer"
4280 PRINT "for 'printing to disk.' Refer to your AppleWorks manual for the reasons and"
4290 PRINT "details. Although it is permissable to do so, if the printer 'Epson RX series'"
4300 PRINT "is chosen to be replaced, the area for the usual Custom Printer will be over-"
4310 PRINT "written, making it impossible to define another Custom Printer! Be sure to"
4320 PRINT "keep this in mind if selecting this area."
4400 VTAB 23: HTAB 30: PRINT "Press <any key>...";
4410 GET A$: PRINT : HOME : RETURN
10000 REM title
10020 HOME : TEXT : PRINT D$"pr#3": PRINT
10030 VTAB 4: HTAB 15: PRINT "Extra AppleWorks(TM) Custom Printer, version 1.0.4"
10040 VTAB 6: HTAB 22: PRINT "Copyright (c) 1987 by Garth Shultz"
10050 HTAB 24: PRINT "K.A.C.U.S., Kalamazoo, Michigan"
10055 HTAB 21: PRINT "(Distribute freely, but don't sell.)
10060 VTAB 12: HTAB 25: PRINT "An AppleWorks Printer Utility"
10070 HTAB 20: PRINT "based upon an article published in Page //"
10080 HTAB 22: PRINT "K.A.C.U.S. Newsletter, July, 1986"
10085 PRINT : PRINT : HTAB 10: PRINT "This utility works with AppleWorks version 1.2, 1.3, and 2.0"
10087 PRINT : PRINT : PRINT : HTAB 15: PRINT "K.A.C.U.S. = Kalamazoo Apple Computer Users Society"
10090 VTAB 23: HTAB 32: PRINT "Press <any key>";
10100 GET A$: PRINT : RETURN
20000 POKE 216,0: PRINT B$: REM trap error
20010 ONERR GOTO 20000
20020 IF PEEK (222) = 6 THEN 2130
20030 IF PEEK (222) = 4 THEN 3050
20040 POKE 33,80: POKE 35,24: HOME
20050 VTAB 12: PRINT "Error # "; PEEK (222);" occurred!": PRINT
20060 PRINT "Correct error and reboot."
20070 END
30000 PRINT CHR$ (4)"pr#3": HOME : PRINT CHR$ (7)
30010 VTAB 4: HTAB 30: PRINT "Not an Enhanced //e!"
30020 VTAB 8: PRINT "This program will function on an unenhanced //e, but the screen display will"
30030 PRINT "not properly display the instruction menu. The menu contains an approximate"
30040 PRINT "memory map of SEG.PR which shows the blocks for the various pre-defined"
30050 PRINT "printers.": PRINT : PRINT
30060 PRINT "By pressing any key, you will see a listing of the memory map. Please note the"
30070 PRINT "letter which corresponds to the printer block to which you want to transfer"
30080 PRINT "your custom printer, then proceed with the program."
30090 VTAB 23: HTAB 10: PRINT "<any key> to see listing, <ESC> to return to program...";
30100 GET A$: PRINT : IF A$ = CHR$ (27) THEN HOME : PRINT CHR$ (21): RETURN
30110 HOME
30120 LIST 610,820
30130 VTAB 23: HTAB 27: PRINT "<any key> to continue...";
30140 GET A$: PRINT : PRINT CHR$ (21)
30150 RETURN
save xtra.printers
AppleWorks(TM) Custom Printer, version 1.0.4"
10040 VTAB 6: HTAB 22: PRINT "Copyright (c) 1987 by Garth Shultz"